target=app
CC=g++
CFLAGS= -I ./include -I /usr/local/include/opencv4
LFLAGS= -Wall -g  -lopencv_world 
src=$(wildcard ./src/*.cpp)
obj=$(patsubst %.cpp, %.o, $(src))

$(target):$(obj)
	$(CC) $^ -o $@ $(CFLAGS) $(LFLAGS)

%.o:%.cpp
	$(CC) -c $< -o $@  $(CFLAGS) $(LFLAGS)

.PHONY:clean
clean:
	-rm -rf $(target) -f
	-rm -rf $(obj) -f